package com.nsl.my_youlai.bbu2.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nsl.my_youlai.bbu2.model.entity.ApparatusRoomEntity;
import com.nsl.my_youlai.bbu2.model.bo.ApparatusRoomBo;
import com.nsl.my_youlai.bbu2.model.query.ApparatusRoomPageQuery;
import com.nsl.my_youlai.bbu2.model.vo.ApparatusRoomVoExcelString;
import com.nsl.my_youlai.common.result.UploadFileStatus;
import com.nsl.my_youlai.mystar.easy_excel.model.ExcelReadResult;
import com.nsl.my_youlai.mystar.enums.NslEnumTransformException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ApparatusRoomService extends IService<ApparatusRoomEntity> {
    ExcelReadResult<ApparatusRoomVoExcelString> readApparatusRoomVoStringFromExcel(String excelFilePath, String sheetName);

    List<ApparatusRoomBo> voList2BoList(List<ApparatusRoomVoExcelString> voList) throws NslEnumTransformException;

    Page<ApparatusRoomEntity> getPage(ApparatusRoomPageQuery queryParams);

    UploadFileStatus importApparatusRoomlExcel(MultipartFile file) throws NslEnumTransformException;
}
